from log_manager import *


if __name__ == '__main__':

    with open("config/config.json", "r") as f:
        config = json.load(f)
    
        log = Logger(config["log"])
        log.debug('调试')
        # log.debug('调试', '123', "456")
        # log.logger.debug('调试', '123', "456")
        log.info('信息')
        log.warning('警告')
        log.error('报错')
        log.critical('严重')
else:
    with open("config/config.json", "r") as f:
        config = json.load(f)
        log = Logger(config["log"])
        # log.info("log init")